﻿using Example.Base.Exceptions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Base.Test
{
    [TestClass()]
    public class EntityNotFoundExceptionTest
    {

        /// <summary>
        ///A test for EntityNotFoundException Constructor
        ///</summary>
        [TestMethod()]
        public void EntityNotFoundExceptionConstructorTest()
        {
            EntityNotFoundException target = new EntityNotFoundException();
            Assert.AreNotEqual(target, null);
        }

        /// <summary>
        ///A test for EntityNotFoundException Constructor
        ///</summary>
        [TestMethod()]
        public void EntityNotFoundExceptionConstructorTest1()
        {
            EntityNotFoundException target = new EntityNotFoundException(Moq.It.IsAny<string>());
            Assert.AreNotEqual(target, null);
        }

        /// <summary>
        ///A test for ToString
        ///</summary>
        [TestMethod()]
        public void ToStringTest()
        {
            EntityNotFoundException target = new EntityNotFoundException(); // TODO: Initialize to an appropriate value
            string expected = "Entity not found"; 
            string actual;
            actual = target.ToString();
            Assert.AreEqual(expected, actual);

            expected = "Test message";
            target = new EntityNotFoundException(expected); // TODO: Initialize to an appropriate value
            actual = target.ToString();
            Assert.AreEqual(expected, actual);
        }
    }
}
